The sciences and math are considered liberal arts.
Under the classical definitions then yes!
The seven liberal arts:
triviumthe verbal arts: grammar, logic, and rhetoric;
quadriviumthe numerical arts: arithmetic, geometry, music, and astronomy.
quadrivium
https://en.wikipedia.org/wiki/Quadrivium
Trivium
https://en.wikipedia.org/wiki/Trivium
STEM = science, technology, engineering and mathematics.
Liberal arts ... “Academic disciplines, such as languages, literature, history, philosophy, mathematics, and science, that provide information of general cultural concern: “The term ‘liberal arts’ connotes a certain elevation above utilitarian concerns. Yet liberal education is intensely useful ( George F. Will).
You either know or you don’t.