I think a better practice would be to just go to sleep. Sometimes I can't sleep because I'm wide awake. In those rare cases I get up and do something until I'm more settled. The thing I often need to do is capturing.
However, if this is interfering with your sleep every night, I think a different approach might be more appropriate. There are meditative techniques that might be able to help you get to sleep. I'm no expert on meditation but a technique someone taught me to stop unwanted and distracting thoughts it to count your breaths. Count them up to 7 and then go back to 1. If you find yourself at a higher number just smile, forgive yourself and start again.
I was taught this one time when I went for a massage and have used it to help me sleep on several occasions.