It depends on what you mean by “spending time in Portugal.”
Are you planning on living here (i.e. becoming resident)? If so, you would qualify for public healthcare.
If you’re merely planning on travelling here, you would likely need travel insurance and this would have more limitations than the public healthcare (i.e. it would mainly be suitable for emergency healthcare).
If you’re living in Portugal, you need an address here, yes.