Is it okay to accept money from another man if you have a boyfriend?

So this guy I work with gave me $50 as a gift for graduating yesterday. Before he had been hitting on me and flirting with me which I also reported to my boyfriend. I also told my boyfriend about the money thing. Was it disrespectful to accept it?
Is it okay to accept money from another man if you have a boyfriend?
Post Opinion