No you cannot use online for any past year. Online is only for 2023.
If you prepared your 2021 federal return using TT you can go back and use the CD/download to prepare the state return. Or you can go on the state's tax web site to get the forms to prepare by hand... Or seek local paid tax help.