is it possible to use an if statement using sleep

e.g if Thread.Sleep > 300000

if not how can i overcome this