Yes, it is OK. But you should observe that you can not eat or drink in public places from dawn to sunset. Accordingly, restaurants and cafes are closed till sunset. However, you can eat your meals in your hotel restaurant or some restaurants with a special permit. Notably, the expense of Iran travel service is lower during Ramadan.