No. An HMO licence cannot be transferred to another person (Housing Act 2004, section 68(6)). If you buy a licensed HMO that still needs a licence, you need your own licence, and managing it without one is an offence (section 72(1)), so speak to the council about timing before you complete.
GOV.UK also says you need a separate licence for each HMO you run, and that the manager must be considered fit and proper. Do not assume the seller's licence covers you after completion.
Useful links
Guidance only, not legal advice. Only the council can decide whether a property needs a licence, and the law can change. Check the linked GOV.UK pages and your council.