You can add drawings and text to JPEGs by clicking on the Draw tool via the Edit menu and re-saving the file. A more legitimate way of signing a JPEG would be to print the file, sign it physically, and scan the document to digitize it.
JPEGs are not the most appropriate file types for signing documents — and many recipients of digital signatures will likely not accept them. For this reason, it’s a better idea to sign PDF documents.