Yes, it is free to visit the Pantheon. On weekdays, you can just walk in, but on weekends and public holidays, you need to make a reservation.
If you want an audio guide or a guided tour of the Pantheon, however, you need to purchase a ticket. Booking online in advance is recommended.