Diplomatic immunity is a form of legal immunity and a policy held between governments that ensures that diplomats are given safe passage and are considered not susceptible to lawsuit or prosecution under the host country's laws. so yes
exemption from taxation, searches, arrest, etc., enjoyed by diplomatic officials and their dependent families under international law, and usually on a reciprocal basis.
Diplomatic immunity (of varying levels) is afforded to foreign personnel accredited to a nations embassy abroad in a 'host' country. Some Consular Officers have full diplomatic immunity, while lesser...