When you are the boss of a company, does that mean you are self-employed?

Do you get a salary from the company?