Yes, exons can code for different domains of a protein. Different exons can be spliced together in various combinations to generate protein isoforms with distinct functional domains.