Would value advice on obtaining marginal effects of variables fitted with polynomial terms.

df$year3<-df$year^3

count~year+year3+offset(log(PY)),family=poisson,data=df,

marginal_effects provides estimates for year and year3 separately, but can I obtain the effect of year allowing for year cubed too? Thanks for advice.