I wonder if in high fantasy settings, magic and spells are so prominent and accepted, would science become taboo? Or even forbidden by law?

“Daddy, how do the stars stay up?” “BECAUSE OF MAGIC NOW STOP ASKING QUESTIONS AND GO TO YOUR ROOM”. Scientists dissecting frogs using everyday cutlery so as to avoid suspicious scalpel possession. Science speakeasies where enquiring minds compare findings until “WIZARDS COMING!” they become background tavern characters. (Someone throws a glass at someone else to keep up the rough facade but accidentally throws a measuring beaker). Scientists captured in a castle dungeon try to resist torture by only reciting the periodic table over and over again. “What me a scientist nO I’M A BLACKSMITH OBVIOUSLY. That’s why I need all these weird tools honest!”