I have a medical professional with a single member PLLC. I'm planning on treating my company as a corporation. Can I issue myself a W-2?

I would like to know if I can issue myself a W-2 from a single member PLLC. And if not, how to pay myself from the company.