If the OP is referencing nighttime temperatures, not a constant temperature of 40 degrees, then they will flower. They definitely slow down, but I've had plants finish beautifully with night temps colder than 40 degrees.
They can take freezing temps fine, check out the outdoor threads on this site.