If an oscillation leads to a change in dipole in the molecule then it will absorb a photon that has the same frequency.
What happens to a molecule if an oscillation results in a dipole being changed?
it will absorb a photon that has the same frequency