Im not against gay jokes, but id very very much be against telling them with your gay friend, unless they are the type of person who thinks is funny, but id assume no one likes being made fun of something thats hard to admit/
I have a gay friend and I always makes jokes to him, but he knows that I don't mean to be offensive. So as long as you have a good friendship and understanding then it's fine.