Yes, as a holder of the retirement visa, you'll be regarded as a resident of the UAE and therefore are able to leave and enter the country at your convenience as long as your visa is active. There is no requirement to stay in the UAE for a minimum number of days per year either.