While it is not mandatory, many corporate lawyers gain experience and develop their skills by working in law firms before transitioning to in-house roles. Law firms often provide exposure to a variety of corporate matters and transactions, allowing lawyers to build a strong foundation before focusing on specific industries or corporate sectors.