No. Passengers are not required to get a Saudi visa to transit through Saudi Arabia provided that they do not intend to leave the international transit area. Those who want to leave the airport and stay in Saudi Arabia for several days need to apply for an e-visa. Without a valid e-visa, they will be rejected from entering Saudi Arabia.
In case passengers are eligible for visa-free entry into Saudi Arabia, they do not need a visa. Other travelers need to obtain a valid visa to enter Saudi Arabia. The Kingdom of Saudi Arabia ("KSA") introduced an electronic visa service in 2019 to simplify the visa application process. With this new electronic visa system, applicants can get a visa for Saudi Arabia quickly and save both time and costs. However, you should check your eligibility before using this eVisa service because it is only available to citizens of 49 countries. Additionally, only travelers who are enough 18 years old can apply for a Saudi Arabia eVisa.
An eVisa permits its holders to remain in Saudi Arabia for up to 90 days. If you wish to explore more about this Western Asian country, a tourist eVisa will be a wise choice for you.