@Pa**
, yep you can definitely apply for a "change of visa" going from a tourist visa to a Non-B, a Non-O or a Non-ED.
You can also apply to have a Non-Immigrant visa issued from a 30 day visa exempt entry too.
Most companies send their employees out of the country to a thai consulate to get a Non-B because it's less paperwork.