Losing your virginity to your best friend

So my best friend and I have been friends for 2 years now, we've always been super close. A couple months ago he was getting kind of weird like telling me he had feelings and such. Anyway I started developing feelings for him and I'm not saying I'm planning on losing my virginity to him, but do you think it would be ok if I did? And we just remained close friends