So long as the scrubs completely cover what you are wearing - and you are confident that you won't get too hot, it is OK to keep pants on. However , it is normal to just wear your underwear under scrubs as operating rooms can get quite warm. One would not want to start feeling faint - which is more likely to happen if you get too hot.