Absolutely not, though if you're more than ten or fifteen seconds ahead of where he is, unless he's running to catch the door, he might be confused, but probably not thinking you're hitting on him. It's only gay if you compliment his ass as he passes.