Yeah, mathematicians will totally be fine.
Right now mathematicians are freaking out because they think the AI will make them useless and they will have to go find real job with real usefulness.
But honestly mathematicians have been totally useless long before the first AI, so generally nothing have changed for them.