Maybe ... but IF they would allow you to do it (what they - the french navy - would never do) the ship would be demilitarized first. That means: it would barely float after this ...
In the past, this has been done with hundreds of minesweepers, landing ships, corvettes, ...
Today - no chance. Nearly all navy (and many other state-owned)ships are sold under the condition that they have to be scrapped and that this is done under the eyes of representatives of the state.
I had to do with german VEBEG (agency that sells government property - everything you can imagine) many times and know what I'm talking about ;-)