Anybody who is buying a brand new or pre-owned home, needs a home inspection to know the true condition of the home.
If you are selling your home you will also benefit from a home inspection, mainly by knowing the condition of your home before listing.
If your new home is under warranty it is wise to have a home inspection before it expires. Every house I’ve inspected needed some type of repairs. The cost of these repairs almost always outweighs the cost of the inspection.