Sure they did. Do even basic homework here. From https://en.wikipedia.org/wiki/Van_Allen_radiation_belt (section "Implications for space travel"):
Spacecraft travelling beyond low Earth orbit enter the zone of radiation of the Van Allen belts. Beyond the belts, they face additional hazards from cosmic rays and solar particle events. A region between the inner and outer Van Allen belts lies at two to four Earth radii and is sometimes referred to as the "safe zone".[29][30]
...
Almost all radiation will be received while passing the inner belt.[32]
The Apollo missions marked the first event where humans traveled through the Van Allen belts, which was one of several radiation hazards known by mission planners.[33] The astronauts had low exposure in the Van Allen belts due to the short period of time spent flying through them. Apollo flight trajectories bypassed the inner belts completely, passing through the thinner areas of the outer belts.[25][34]
Astronauts' overall exposure was actually dominated by solar particles once outside Earth's magnetic field. The total radiation received by the astronauts varied from mission to mission but was measured to be between 0.16 and 1.14 rads (1.6 and 11.4 mGy), much less than the standard of 5 rem (50 mSv)[c] per year set by the United States Atomic Energy Commission for people who work with radioactivity.[33]
This is high school stuff.