Skincare - sunscreen - makeup application

So I’m new ish to skincare. This year I’ve been really trying up to my skincare and get into a real routine other than a random face wash and moisturizer. I recently changed my products because the ones I was using were really drying me out. I also just heard that it’s important to add a sunscreen in order to keep your skincare working better since some things you can use can make you more sensitive to the Sun. So I did some research and picked a nice face sunscreen and today was my first day using it and I struggled with my makeup afterwards. Everything was just sliding around everywhere. Should I wait longer before applying my makeup or does anyone have advice on this??