Absolutely.
I've done this for years.
Taxes can be a bit more complicated, so I would recommend getting professional advice on filing them for the first year or two, but once you understand how to account for everything, it's really quite straightforward. There are some great tax breaks with self-employment, too!