Started Birth Control

So I started Birth Control 4 days ago, and I just wanna know a few things, like when it’s fully in affect and when it’s safe to have sex, as well if I had a super irregular period before starting the pills, will it take a while for them to get into a 28 day cycle?