There may be some truth.
“Rosmarinic Acid is a polyphenol similar to caffeic acid (found in Coffee) and is in high levels in Perilla Oil and Rosemary, from which it draws its name. It is a general anti-oxidant and health compound, and seen as ‘healthy’.”
https://examine.com/supplements/rosmarinic-acid/
Although keep in mind that just because the molecule is similar doesn’t mean it will produce the same physiological effects. Neat that you have a rosemary bush available to you!