Was Rahab Really a Canaanite?

Was Rahab the harlot a Canaanite? A natural assumption would be that she, as a resident of Jericho, was of the same national identity as those among whom she lived.