They say your parents sins are passed in to you?

My grandma told me that the Bible says that your parents sins are passed to you .... and lack of better terms my bio mom was a tramp she had 5 children and I've been ttc with my husband for 3 years and no such luck I wish I could be a blessed woman but I'm not ....... wondering if maybe this has anything to do with our troubles ..... 😕