Sure, but you also have to consider raw materials. I don't believe there are any rare earth mining operations in the US at this point that produce the raw materials necessary for making most of this type of electronic equipment. While we could certainly make and assemble them here, most of the materials necessary would have to come from... guess where... China! China right know mines somewhere in the 90s percent of all rare earth material used in manufacturing, around the world, not just for the US. While this would perhaps be creating more jobs here in the US (which is good obviously), the situation is still the same in that we would still depend on China.
Ideally we could help create mining operations here or in other countries and source that material from all over, but right now China is the only company that can keep up with the demand. Also in most cases to source that material from the US we would have to destroy thousands of acres of protected land, and create countless tons of waste that we'd be forced to dispose of, somehow. This is partially why China can do this so cheap, because they don't give a shit about where they are disposing of their waste. This is dirty little secret of the tech industry, your cell phones, laptops, literally everything leaves behind more toxic waste than can be safely disposed of, but that another story entirely.