Perhaps. However, I always assumed that they came by way of the Atlantic and then up the Amazon...but, what do I know?
The bible speaks of Ezion Geber when a later Israeli king tried to duplicate Solomon's Ophir runs. It says the fleet was destroyed at the port of Ezion Geber before it could sail. I assume that's the same port Solomon took off from. That port opens to the Red Sea and therefore the Indian Ocean. It would have made a hell of a trade route. Arabia, India, Southeast Asia, the East Indies and then catch the trade winds and ocean currents to Peru.
I've thought about this and it seems to me that the best way to have done this if his gold mines were in Peru is to supply the men, mines and the smelters by way of the Pacific route. and immediately send the ships back after they've dropped off their supplies and men to do trade with the nations on the return trip. The men then camp in mining camps and smelting camps in Peru working and sending finished gold ingots down the Amazon to a port at the opening of the Amazon to the Atlantic. This gold is picked up by ships sailing from the Joppa (I believe) port on the Mediterranian by way of the Atlantic Ocean. This way you knock off 3000 miles of upstream voyage to supply the camps or to pick up the gold and the ships aren't tied up while the miners do their mining and smelting. And the Atlantic voyage seems shorter than the Pacific voyage so it's a quicker trip while the dangerous cargo of gold is on board.
I've seen some say that the ore was smelted on board the ships, but I can't imagine smelting ore on wooden ships.