Abstract Introduction HIV is a public health issue, and as such, there are currently programs for the use of pre-exposure prophylaxis for HIV (PrEP) in various public institutions, with family physicians being one of the pillars to provide information and raise awareness among individuals at risk for HIV who wish to use these strategies. Objectives To determine the factors associated with the intention to use PrEP among university students in the healthcare field in the Veracruz-Boca del Río region. Methods A cross-sectional, prospective, and analytical study was conducted from August 2023 to March 2024, including students from healthcare-related majors at universities in the Veracruz region. An instrument was used to assess the level of knowledge about PrEP (Cronbach’s alpha of 0.8), with scores ranging from 0 to 10. Students were invited to participate in this research at different faculties of health sciences. Results 508 subjects participated, with 299 (58.9%) females and 386 (76.0%) heterosexual; 65.9% had never heard the term ‘PrEP,’ and 12% learned it from social media. The intention to use PrEP was positive in 81.5% of subjects in case of becoming a high-risk person for acquiring HIV. The level of knowledge about PrEP showed a score of 2.2 (SD ± 2.6), with 3.7% having high knowledge, 10.2% having a passing grade, and 55.9% scoring above the median (1.4) of the group’s scores. No association was identified between gender identity, sexual orientation, academic characteristics, and sources of information with the intention to use PrEP (p > 0.05). Knowledge level above the median of 6 points showed an odds ratio of 2.95 (95% CI 1.03-8.3) for the intention to use PrEP (p < 0.05). Conclusions The level of knowledge increases the probability of the intention to use PrEP in young people, making it essential for the primary care physician to carry out this training and awareness activity within their daily interactions with young patients. Key messages • It is essential to generate education programs on Prep for the population, as this will favor informed decision making on the use of these medicines in case they are required. • It is necessary to provide people with general information about Prep, since despite the existence of active programs for its distribution, most people have never heard anything about this drug scheme.