I'd never post a pic like that, but is it really racist? Feels a lot more like they're making fun of a [potentially] pretend girl that drinks/smokes while pregnant and doesn't know who the daddy is.
Maybe it's racist against white people, since she's a white girl. Otherwise, the only way it's racist is if you feel that a white girl getting pregnant by a different race is a bad thing. But the pic doesn't say that, so that would be on you.