Though it is generally used negatively, in certain "ghetto" settings, it is a compliment to tell a girl her boyfriend knocked you up. No one is sure why, but many believe it is a compliment for implying that said boyfriend is attractive/sexually potent.
"You're flyboy got me knocked up/impregnated me"
"Thanks, girl! He is a looker!"