Yes, and it is often the most loved corner in the house. Children like small, enclosed spaces, and the low ceiling under a staircase makes a natural den. Clear the space, check that nothing stored there is unsafe for a child to reach, and think of it as a reading nook or quiet corner rather than a full playroom.
A soft base is the starting point. The MeowBaby Teddy Sako Bag is a child-sized bean bag suitable from age one, light enough to move in and out, with a cover that zips off for washing. Add a padded mat underneath and a small basket of books, and the space is ready.
If the space is deep enough, a few hooks or a shelf at child height make it feel like their own room. Keep the arrangement simple, so it is easy to clear when you need the cupboard back.