Are polynomial contrasts for a time factor possible in DESeq2?

If we have a design with multiple time points being measured for independent samples, and we want to ask about linear or quadratic trends, is it possible to use polynomial contrasts? For example the contrasts for 4 time points would be:

Linear: -3, −1, 1, 3

Quadratic: 1, −1, −1, 1

Cubic: −1, 3, −3, 1

We have already compared adjacent time points using the contrast command in DESeq2. But someone asked about testing the trend over these time points. Using the linear polynomial contrast above is one solution, although admittendly I've applied these before in a linear regression setting and not a negative binomial regression. I suppose with 4 time points we could also treat time as continuous.

Thank you for any comments.

Dave A.