In this note, we show that a stationary sequence obtained by applying a fixed deterministic function to shifts of a stationary sequence (satisfying a mild regularity condition) has a spectral density. In the multiparametric setting, we obtain a similar result for a function of a shifted i.i.d. field.