Given how good the rail systems are in several Asian cities despite/thanks to being private, you might want to reconsider that opinion.
So, sure, you can have a rail system self-fund as long as you let it build whatever the fuck it wants at stations and funnel all the profits back into the train line.