Which is the correct definition of the post-Civil War term carpetbagger?

A carpetbagger refers to a Northerner who moved to the South after the Civil War to take advantage of economic opportunities or political power.