No, Infantry and Cavalry are not the same. Infantry consists of "foot soldiers;" that is, when infantrymen are on the move, they march from Point A to Point B. Cavalry, on the other hand, ride horses. Although the cavalry occasionally fought "dismounted."
Hope this helps.