Technically possible but not advised due to impedance mismatch. Electric guitars have low impedance; acoustic amps expect high impedance. Result: distorted, thin tone, potential amp damage.
If necessary, use an attenuator or impedance matcher to protect the amp and improve sound.