Yes, electrical inspections are a legal requirement. While the small details in regulations and requirements may vary from state to state, all 50 states have some form of electrical inspection standards for all new construction.
Private landlords must have every electrical installation in their residential property inspected and tested by a certified and competent person every 5 years.