Non-resident Landlords Scheme

Will moving abroad affect mortgage?

Would I have to get a buy-to-let mortgage if I buy a house to live in for a couple of years, move abroad, then return to the same house when I get back?