Investors & landlords

We did live in the home for 2 years (2015-2017), however due to receiving PCS orders we have been renting it out for the last 2 years (2017-2019). I’m curious if we can amortize the VA funding fee we paid when we purchased the house since we are now renting the home out?