Linear regression on a weighted moving average


I was hoping to get some advice. I want to run a forecast using linear regression but wanted to account for any potential cyclic variations in the data. Would running a linear regression on the moving weighted average of my original dataset be an acceptable approach?