It is important to test the soil before building a foundation. This can be done by a professional.
They will determine the flatness of the soil and how high you can build the foundation.
Remember, however, that you aren’t digging …