You should ask your company first. If not, you have to cancel it. You can cancel your visa and work permit by yourself but you have to prepare the document for cancel visa and work permit in Thai language.
You won’t get banned but I suggest you that when you come back in Thailand you should cancel your old work visa and old work permit before get a new job.
Stella Labang ok I understand now. You can change the type of visa in Thailand. For example, teaching visa and work permit. I guess you may have non-b visa and work permit. If you have non-b visa your husband must change his visa in non-o visa.
Hello. You can change your type of visa in Thailand and no need to go aboard if your visa still not expired. By the way, if you want to get non-B visa the officer will consider lot of thing such as the company you work with.