Can I build a wooden shed on top of the grass?

No grass is not a suitable base, you need something solid and level like concrete or slabs.