Punishment from God have to be directly related to our sin?

The reason for this post is i just wanted to make sure that way i ended up today wasn’t because i sinned…(please refer to my other posts for reference, maybe No one really wanted me in a romantic marital relationship… )
I admit i did some bad things in my life, i ask Christ for forgiveness but that doesn’t mean He doesn’t chastise those He loves. I guess i should’ve ask this in the other thread but i didn’t want to confuse anyone by changing topics in one thread. I get confused when 2 topics overlap each other.