Is the Panama canal in Panama city?

In part. The Panama Canal meets the Pacific Ocean at Panama City. So yes, the most southerly part of the canal is in Panama City.