Yes, you can but with a short timeframe and you are not looking for growth, why would you?
You’re better to take your money and buy a 1 year CD and rollover or a 5 year CD.
Yes, you’ll pay taxes on the income but you’ll have an assured return and without the admin fees of a 529.