Should you train after a bad sleep?

Is it still OK to go for a run if you’ve been tossing and turning all night?