Yes, you can! In fact, installing shiplap directly to the studs is easier than putting it over drywall.
You save time and effort by not having to locate studs across the wall for nailing, especially on a large wall.