Laying down and birth control pill

Is it okay if I take my bc pill and then lay back down in bed? I’m worried it might cause it to be ineffective? What if I sleep after taking it?