Yes, it's perfectly fine to wear leggings as pants as long as you style them appropriately and in a tasteful manner. Avoid wearing sheer or thin leggings that can be see-through, and pair them with a long top or a tunic to cover your hips and rear.