Is a motherboard top of the range same as getting a top of the range graphic card, cpu, ram, PSU, ssd, etc. If you get top of the range graphics etc and buy a cheap motherboard would that also have an impact on gaming?.
It's the same principle, but the degree of difference it makes is much smaller. So get a £400 graphics card rather than a £200 graphics card and you'll see a pretty big difference in gaming performance. With RAM, the return on investment is lower. Spend £400 on DDR4-3600 RAM rather than £20 on DDR-2666 and you'll see a moderate difference in gaming performance. Motherboards are pretty much bottom of the stack in terms of gaming performance impact. Get a £400 motherboard rather than a £130 motherboard and you'll see very little difference if any. Where it does make a difference is in WHAT you can do with it rather than how well it does it. For example, I bought the MSI Meg Creation X399 motherboard which is an outrageous £460 or thereabouts. Do I get better gaming performance out of it than if I'd bought a low end M/board? Not really. But I do get dual ethernet ports and capacity for 7 M.2. SSDs and eight SATA ports with RAID 1/5/10. Which for someone who actually needs a tonne of disks for database work and content development, is really valuable. But if you don't need that stuff the for Pity's sake, don't spend extra money for it.
If you're an overclocker, then a higher quality board is useful. The better quality components will help you eek out those last drops of performance from your CPU. But if you are at all budget constrained and your goal is gaming performance, then motherboard is not where you should be maxing out your purchase. For gaming your algorithm should be something like this:
Motherboard - buy what has the needed features, not more.
SSD - buy something with reasonable capacity based on what you think you'll need. M.2 PCI-Ex4 is a nice to have, but old fashioned SATA SSD's will do the job.
CPU & RAM - buy reasonable of both. Don't go into the point of diminishing returns.
GPU - normally any spare cash you have goes here to buy the best you can.
Basically, for gaming, buy decent minimums for everything else and then blow the rest of your budget on the graphics card. Up to a point, anyway. I personally wouldn't bother with the super high-end graphics cards right now, they're ridiculously overpriced and become yesterday's news far too quickly.