To provide you with an accurate solution, I'd like to know the following-
May I have the exact model name of the product? Refer to this document for steps to find the product details. Do not share any of your personal information such as serial, phone number, email ID, etc.
What is the Operating System installed on your Mac computer?
And with regards to connecting the mac computer to the same printer as your HP laptop, you can do it and there is no problem in doing so.
Keep me posted for further assistance.
TEJ1602 I am an HP Employee
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".