Why does Haiti have earthquakes?

I think it is because haiti lies on a fault line between two plates-the north american and caribbean.