No, it is not. The testes can be 'dislodged' or rather, they are
not found where they should because they did not descend into the
scrotum properly. The testes develop in the abdomen during
development and descend into the scrotum later. If they fail to do
so, that's undescended testes or cryptorchidism.
Hernia refers to some abdominal contents, such as a piece of
omental fat (Fat attached to intestines) or a whole segment of
intestines penetrating through a weakened abdominal wall. That can
happen in various places...eg, inguinal hernia, when it enters into
the scrotum, femoral hernia at the upper thigh, umbilical hernia at
the belly button etc..