One day pill, will it work?

So I just found out I have chlymidia and my doctor gave me two pills that I take together for one day. Will it work!?