Can I install a fixture on a sloped ceiling?

Can I install a fixture on a sloped ceiling?