You can do that pretty easily if you have copper, too. Use pex beyond the shark bite fittings and make life easy.
The one thing to look out for is that most people (here at least) install water softeners for only their hot water, to save their water heaters. It's not awesome drinking softened...