Was quantum leap cancelled?

Yes, it was cancelled right in the middle of a cliff hanger. Because they had to just cancel it quick it was a bad ending where sam never gets home.