This is only possible if you have a shared wireless password of the network to which the printer is connected to OR if the printer has ePrint configured and someone has the printer's email address.
Anyone who knows your printer's email address can print to your web-enabled printer. You can block others from sending HP ePrint jobs to your printer or manage allowed senders with an HP Smart (formerly HP Connected) account. Go to Setting Up an Account on the HP Smart Website for more information.
I hope that answers your concern adequately. Let me know!
Please click “Accepted Solution” if you feel my post solved your issue, it will help others find the solution. Click the “Kudos/Thumbs Up" on the bottom right to say “Thanks” for helping!
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".