Is this true?

I was once told guys only really stick around in their child’s life(of you and him aren’t together) If it’s a girl. If it’s a boy and you guys are broken up he is more likely to go astray..

What do you guys think? Is there some truth to that?