Reinventing the wheel is one (good) way to learn, everyone has done that, at least once.
When tackling a bigger project, though, it's far better to learn how to use others' wheels. That is, libraries. When you put together buttons, blinking leds, stepper motors and some sensors, you'll go nowhere without libraries.