Follow terrain in a power line inspection

Hello I am new here and with this software.
I want to make a power line inspection, and the altudes of terrain change from one pole to other, can I plan a mission and fly it straight from one pole to other , knowing that they have different altitudes?