Yes, contrast dye is an essential component of ERCP. It is injected into the bile and pancreatic ducts during the procedure to allow for X-ray imaging, which helps visualize the anatomy and identify any abnormalities such as stones, strictures, or tumors.