I think it could have been a possibility in the early times of the mask mandate, yes.
But as of today, it is definitely a voluntary behavior. In France, unlike in some other countries, you have to wear a mask pretty much everywhere indoors, that includes train stations, buses, trains, planes...