Sure- and why not?

Indeed, they are often used for ceiling fans as well.

The only problem is wire fill... if the circuit continues on to another fixture, then wire fill is violated. There's only enough room (legally) for one set of wires.