Would it be appropriate to message a friend and ask oh you have a boyfriend now, when did that happen?

I like her and I thought she liked me, but I haven’t hung out with her in 3 years
Would it be appropriate to message a friend and ask oh you have a boyfriend now, when did that happen?
Post Opinion