As someone else said, you have to approach it from the right angle for it to be funny. There's a time and a place for these sort of jokes e.g. during stand-up comedy and not out in public to a mate.
Then again, it's all fun and games until you, or someone you know, becomes a victim of rape.