A first-time buyer can rent the property, but this includes several but not stringent rules. For example -
The first thing is you need to inform your lender that you want to rent out your home; otherwise, legal actions can be taken.
Some lenders may ask you to stay in your current home for at least 6 months
Different lenders have different policies on this matter. To get a better solution, ask your broker to get you the deal with your priorities.
If you want to buy the property for the rental purpose only then you need to get the buy-to-let mortgage because both types of mortgages (residential, buy-to-let) have different deposit size and interest rate.