Without knowing where you are in the world,has a lot to do with building.
In northern Illinois,you have frost to contend with.If you attach a deck to your house you need to have footers for your posts that are dug below frost line(42"min)
Many factors apply to building,and how posts are answered.
It would be in the best interest of all to atleast post where they are.Luck