# Electromagnetism Electromagnetic fields

Hi all,
can the angular frequency of a electric waves be used to determine the wavelength using the following;
ω=2πf
rearranging for the frequency, and using the following;

E=hf=(hc/λ)

or can this formula no be used as it is dealing with photons?