Being a holder a temporary resident permit in Portugal, you can benefit from the public health and education systems.
According to the law in Portugal, foreigners who reside in Portugal enjoy the rights and are subject to the duties of Portuguese citizens. For this reason, any foreign citizen living in Portugal is entitled to access quality education and vocational training; the exercise of a subordinate professional activity; to exercise an independent professional activity; access to the health care system; access to the law and the courts.
Yes. All residents in Portugal are able to enjoy free education.