Yes, masonry can be used for both interior and exterior walls. The choice of materials and techniques may vary depending on factors such as the desired aesthetics, structural requirements, and environmental considerations.