Was the Panama Canal good for panama?

The panama canal was not that great for Panama until it was controled by panana itself because Pana could not tax from it but it still brought many ships around in the area. Since they can tax from it now though they do benefit from it alot