Tested that today, and it does the same in Z-Axis as expected.
Straight path of around 400m lateral distance, 4 Waypoints. The 1st at 50m altitude, 2nd and 3rd at 15m, the 4th at 50m again. The drone went through all waypoints, and down to 11m between waypoint 2 and 3.