No. Query parameterization is how you avoid this. How do you propose that encryption would prevent SQL Injection?
How encrypting user data in JS on the client is different from properly hashing user passwords in JS on the client? It is now accepted that sending and storing passwords in plaintext is bad practice; the logical next step is to encrypt not only passwords, but all data on the client.