Yes, you can
Reshaping your data to a long format would make things much easier by far, and have in mind that this is not going to affect your raw data and you can easily get back to a wide format after the forecasting is done.
If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.