Do you mean that if the number of cycles per second changes, does the number of cycles a metre have to change?
If that is what you mean, the answer is yes, if the velocity stays the same. The wave has to travel one wavelength in the time it takes for one cycle (the period). This means that the velocity is wavelength/period = (cycles per second)/(cycles per metre).
For light in air or space the velocity is constant or nearly for all frequencies. In some materials the velocity changes with frequency, but I do not know of any material where the velocity changes so that the wavelength is constant with frequency. I do not think that it is possible, even for a small range of frequencies, as the group velocity in such a material would be infinite, which would violate special relativity.
If the properties of a material change, the wavelength in it at a constant frequency can change.This happens in a gas when the temperature changes, for instance, and in materials where the dielectric constant depends on the amount of stress.