Can lawyers get in trouble for lying?

Can lawyers get in trouble for lying?, It's rare for lawyers to commit perjury for the simple reason that lawyers generally do not make statements under oath--that's what witnesses do. Instead, lawyers make arguments based on the testimony of witnesses, but they don't do so under oath.