Yes, lots of ex-pros do that….
Normally for charity/ one-off ‘money makers’ for their formative club/ etc….
Some ‘non descript’ non-league northern team had a Brazilian WC winner sign-up for a game….it was just a publicity stunt.
That’s how Soccer Aid works I guess