It's a complicated issue (which in modern times means, "yes").
Insider trading laws should forbid it, but are loaded with so many intricacies that government figures skate by.
While there's no law directly banning it in exact words. There have been attempts in the Senate to achieve such which haven't made progress: https://thecurrentga.org/2024/07/27/bill-banning-stock-trading-for-presidents-vice-presidents-congress-members-advances/
Nevertheless law enforcement against the president specifically is reliant upon Congress, which in the partisan era of today is not going to happen if their leaders share the same party as the president, so that's basically that.