Moving any part of the supply chain tends to encourage the other parts to move. If part production moved, then both mining and device production would have an increased incentive to move. If mining moved, part production would have an incentive to move, and if that moved then device production would have an incentive to move. It all works both ways, with suppliers and customers tending to move toward each other.
So yes, we can put everything back in the USA, and it can be affordable, but we face an uphill battle. The battle is only lost if you give up trying.