Yes, it almost has no side effects and its safety has been approved by the FDA, EFSA and JECFA as a food flavor in a lot of food.
FDA
Vanillin is an synthetic flavoring substance and adjuvant that is Generally Recognized As Safe (GRAS). (6)
EFSA
Vanillin (FL-no: 05.018) is authorized for use as a flavouring agent in the EU according to Annex I to Regulation (EU) No 1334/2008 (7). Its safety used as a favouring agent was re-evaluated by the EFSA in 2008. EFSA concluded “No safety concern at estimated levels of intake as flavouring substance”. (8)
JECFA
Its ADI (acceptable daily intake) “0-10 mg/kg bw” was set in 1967 and in safety re-evaluation JECFA concluded that “No safety concern at current levels of intake when used as a flavouring agent.” in 2019 (9)
http://www.chinafooding.com/Vanillin
PR