At times customs will stamp your passport and at times they will only stamp your visa. If your passport is stamped do not be concerned. It is ok to have a Cuba stamp in your passport if you are traveling legally.