Is visit used to mean the same thing in the next two sentences?

Did you ever visit Paris?

The principal visited his rage on the students.
different meanings