In thus day...
yes teams have needs and compare what are what they can get in draft vs free agency. What you got in free agency affects how you draft.
another factor is age of players on team and depth. For example you have 2 vet CBs, you sign another 2 in free agency and you have 3-4 PS or depth prospects on your team. In 2-3 yrs you know you may lose of of the 3 vets so you draft for long term depth not expecting anything from pick this year but in 2-3 years.
with rounds 1-3 you look for players who could step in now and help but know some positions it’s harder for a rookie to step in full time.
last year buffalo signed Yeldon and gore and still had shady. All old so they needed younger. Wade was signed but he was a project. Thry needed a RB of the future. In today’s nfl rbs tend to take roles so it would durprise me if buffalo drafted another RB who had some differences to come,rmrnt what they currently have.