you can come back and work but you have to provide an noc from your previous company before you left qatar. The ban is applicable for the time you exit without cancelling your visa but if you will come back for work, you have to provide a noc from the previous company.