Unless you have to transfer tens of million Gil, yep you can sell on market something at the price your old character have in Gil then buy it.
Fee is usually 5% but depending regional settings it may be lower, as example in Foundation's market a while ago it was 3%.