Yes, you can leave. But if you have the intention to comeback on the same visa, you should obtain permission from the immigration, which allows one time exit/rentry on the same visa.