In regards to the entry into the United States, immigration agents will not always stamp the passport, but they do record entry into the country. In the case of departures (mainly on commercial planes or ships), the transport companies are in charge of passing on the departure information of the passengers.