Can I sign for my spouse? My spouse and I lived in a separate place.

My spouse lived in another state but we file jointly. Can I sign 1040 and 1040x for her?