In the United States the federal ESIGN Act and the UETA, adopted by 49 states, recognise electronic signatures for most everyday agreements, as long as people agree to sign electronically and there is a reliable record. The eIDAS rules do the same in the European Union and the UK. Sign Officially records consent, identity checks and every step in the certificate.
Some documents still need special signatures or a notary in many places, for example wills, some property deeds and some court papers. When in doubt, ask a lawyer where you are. This page is general information, not legal advice.