Can a 1031 exchange be used for a primary residence?

Broadly speaking, only real estate assets that are held for investment or business means will qualify for a 1031 exchange. This means that primary residences will not qualify for a 1031 exchange.

You can find more information and the types of 1031 exchange–eligible properties here.