Technically you could, but as Eli Cieslak said using "to set in" usually indicates something negative.
Normally one would say; "The sun has come out.", "The weather cleared up.", "It's sunny".
Also to say something like "The sun has set in." sounds old-fashioned.