Taxonomically moths aren’t butterflies. Butterflies are in a different suborder, Rhopalocera, and moths are in the suborder Heterocera. They are all a part of order Lepidoptera. Additionally, there are moths that aren’t nocturnal, like some species in the family Uraniidae.