A shrimp’s heart sits in the cephalothorax (the combined head-and-thorax), so “in its head” is a simplified but basically correct description. Many shrimp also have an open circulatory system, meaning blood (hemolymph) flows through cavities rather than only through closed vessels.
🤯 "A shrimp’s heart is in its head. Which explains their terrible love life."