Does working out at night affect your sleep?

Does working out at night affect your sleep?