It depends largely on what you do and why you need it.
An iPad is a no-no if you’re interested in coding and programming. Instead, you should use MacOS, Windows, or Linux. You just cannot code on an iPad. Remember that you may use it like a computer, but it isn’t one.
I’ve been cautious about tablets since the debut of the iPad. I even wrote an essay stating that it’s just an oversized iPhone with incredibly limited capabilities. But it was only a few months ago that I decided to buy my first iPad.
In some ways, the iPad is a computer that allows you to absorb content more quickly than a laptop. Depending on the work you do, content creation may be equivalent to or inferior than utilizing a laptop.
To conclude, it is totally depends on you, your needs, your budget, and the applications you want to utilize.