Yes of course. How do you think you get back flying from those circumstances? - you need whatever training you need, part of which can, if the instructor so decides, be solo.
That's what I did after 13 years of not flying. Essentially I repeated the PPL course at about twice the speed, including solo flying.