As others have said the D will feel floppy but will work as a temporary measure. Don’t use the E string though, you would be tuning the E string a 4th higher than it is supposed to be, adding extra tension to the instrument and possibly breaking the string too. You might already know this but I bring it up since you mentioned you have a spare E.
EDIT: I answered because I thought this was a recent question, I assume you’ve replaced your A string by now, lol!