As the title suggests, can I obtain a NON-B Visa in Thailand without leaving the country?

I've never needed one before and can't seem to find any clarification online.

Cheers.