A vehicle must pass a safety inspection:

Before you can renew your vehicle's registration, it must pass an annual safety inspection. This inspection must occur within 90 days of when you are renewing the vehicle. In several North Carolina counties, an emission inspection is also required.
DMV Writen Test