yes they probably will die before you upgrade.
you mentioned 1 month in chat which would be to long.
take them back and try to get a 10g and some guppies as a start goldfish aren't really a good starter fish.
you also need to read up on the nitrite cycle in aquariums and how do care for your fish and tank.
thats the link for the article we have here on cycling
http://www.fishforums.com/forum/gene...le-basics.html
suggest you read that.
good luck and I hope you make the right descision