Yes, because the contexts are wildly different, and so are the genders of the jokers. In terms of power relations, this is exactly the same as how people of colour can use the N-word and white people can't.
Neither men nor women have a monopoly on anatomically-related jokes (of either gender). Not in the same way that it's unacceptable for a white person to use the 'n' word.
I'm not even commenting on whether either gender _should_ have such a monopoly (they shouldn't in my view). But just in actual fact it is not so in our society today.