Heating olive oil can alter its chemical structure, potentially leading to the formation of harmful substances. Despite this, olive oil has a relatively high smoke point compared to other oils, making it a safer choice for cooking. However, it is advisable to avoid repeated heating or using it at excessively high temperatures to minimize the production of harmful compounds.