It will just make matters worse. Know you will sleep eventually. Avoid exercise near bedtime. Don't go to bed hungry. Have a light snack, avoid a heavy meal before bed.
Bedtime routines are helpful for good sleep.
Avoid looking at the clock if you wake up in the middle of the night. It can cause anxiety. If you can't get to sleep for over 30 minutes, get out of bed and do something boring in dim light till you are sleepy. Keep your bedroom at comfortable temperature. If you have problems with noise in your environment you can use a white noise generator.