ALPINE: Unveiling The Planning Capability of Autoregressive Learning in Language Models