Does age matter when getting a mortgage?

Does age matter when getting a mortgage?