It really depends what kind of friend you are talking about. If its someone really close to you, you don't do that shit period. No exception.

If its some friend you don't kick it with, your just neutral with, then i think its ok. But still, there will be awkwardness.