Yes. Nintendo 3DS cartridges only work on 3DS-family hardware: 3DS, 3DS XL, 2DS, New 3DS, New 2DS XL, New 3DS XL. They will not run on DS, DSi, Wii U, Switch, or any non-Nintendo device.
If you want to play 3DS games, buy a 2DS (cheap, durable) or use Citra with legally dumped games. There's no shortcut.