The influence of an external homogeneous magnetic field on the quasilocalization of the particles-characterized quantitatively by cage correlation functions-in strongly coupled three-dimensional Yukawa systems is investigated via molecular dynamics computer simulations over a wide domain of the system parameters (coupling and screening strengths, and magnetic field). The caging time is found to be enhanced by the magnetic field B. The anisotropic migration of the particles in the presence of magnetic field is quantified via computing directional correlation functions, which indicate a more significant increase of localization in the direction perpendicular to B, while a moderate increase is also found along the B field lines. Associating the particles' escapes from the cages with jumps of a characteristic length, a connection is found with the diffusion process: the diffusion coefficients derived from the decay time of the directional correlation functions in both the directions perpendicular to and parallel with B are in very good agreement with respective diffusion coefficients values obtained from their usual computation based on the mean-squared displacement of the particles.