I believe you meant yellow fever rather than malaria. Although they are both carried by mosquitoes, yellow fever was the main problem in Panama. It is claimed that air conditioning was a better solution than netting.
No, read path between the seas. Malaria was the problem.
https://www.cdc.gov/malaria/about/history/panama_canal.html