Not really, no—Trine 2's story isn't complicated enough to require playing the first game.
That said, the original Trine is a wonderful game in its own right, and it's usually cheap to pick up these days. If you have the time, I'd recommend starting with the first one to appreciate how the series and its charming co-op puzzle-platforming evolved. But if you'd rather dive straight into the sequel, you won't be lost.