Is it possible to do coding on ipad m2?

I am thinking about buying iPad to do IOS development. Is it good idea. please Give your opinion