Not only can you use both niacinamide and sunscreen, but it is recommended that you do so. Occasionally, niacinamide will make your skin more sensitive to the UV rays of the sun, so using it before applying sunscreen takes care of that problem.