In the 80s Brazil went that same path. They made a law forbidding everyone from importing computers. The idea was to "develop a national computer industry".
They created a monstrosity. The Brazilian made computers were always one generation behind the foreign ones (AT 286 was a "new" thing when every country was going into 386) and would cost 3 times more. Computers smuggled from Paraguay were everywhere, even I smuggled some.
The IT industry in Brazil became a cartel dominated by few companies. They'd pirate everything from the Americans, even DOS and all BIOS and firmware. Their computers' mainboards were ugly, hacked and defect prone. But they would give buckets of money to the military controlling the government and the corrupt politicians in Congress. The 80s became known as the "lost decade" because of the low growth induced by this policy.
This dumb idea expired in 1992.
What is Brazil's computer hardware industry like now? Are there any companies manufacturing in Brazil?
I though Brazil still has these weird tariffs on computers and high tech products in general - at least I've heard from some Brazilians that it's still making personal computing hardware far too expensive wioth little to no benefit to this day.