You are correct! You correctly used the following calculation to find the energy of one photon of 400 nm light and then converted this answer to the energy for one mole of photons.