Is it okay to publish my thesis when it was done 2 yrs ago?
Is the information offered in your thesis interesting?
Useful?
Original?  
Previously unpublished and not known?
Pertinent to the subscribers of the journal to which it is to be submitted?
Would the visibility of the published work be useful to you, professionally?


Now none of those questions have anything to do with how long this work has been sitting around (like for 2 years).  If all of the answers to those six questions was "yes", what reason in the world would there be to not publish?

Even if it was, say, 4 outa 6 "yeses", why wouldn't you publish?

There was some things I did in grad school that I thought was crap, yet I was encouraged to submit to publication (and I didn't).  So, Sofia, you need to look at the content of your thesis and ask yourself if the work has value, if someone else reading it will find authentic value in it.  And you need to make some attempt to evaluate its novelty (but don't worry, the reviewers/referees will let you know if there is uncited previous published work).

I can't think of a reason in the world where, if the content would otherwise be worthy of publication, that the two years would make any difference at all.