Buying or renting?

Hi! My spouse and I are thinking of moving to Durham in the coming years and I was wondering if it’d be better to buy or rent? We were thinking of renting for a bit and then buying. Do you think that’d be a good idea?