I’ve got a curious question

If I drink some alcohol at not too late in the night then take my pill at 6am in the morning, will it affect anything?