Affiliation during unpaid leave?
If you are "on leave," meaning that you still have an appointment at your primary institution that you can expect to return to, then yes, you may use both affiliations.  Sometimes it is explicitly noted that you are on leave from this appointment, but that depends on journal policies.