I think you should go to immigration to find out officially.
Everyone here gives you a different answer. Some say you can , others say you can't.
I know when I was having my RP done and I had a 6 month visa in my passport, I had to go to immigration and pay Qr 200 so I could leave the country without, my visa being cancelled resulting in having to start the process again because they cancelled my visa.
Go and check!!!