Does temperature affect your heart rate?

Yes it can. The colder you are the slower your heart rate will get. Especially in situations like hypothermia.