Guys- can you ever be just friends with a woman you find attractive/hot?

I’m just wondering, I’ve been friends with this guy from university for years now and he never felt the way I did for him but he told his friends he wanted to sleep with me and when my hair was messy once he said ‘is that your sex hair’, I’m sure he finds me attractive at least even if he won’t admit it.
So recently we caught up and I assumed he was single by the way he was acting but he waited weeks to tell me he’s actually married.
He said he’s happy to be friends but can a guy be friends with a woman he thinks is hot? And he can see my social media again- pics etc- what do you think?

Guys- can you ever be just friends with a woman you find attractive/hot?
Post Opinion