That is right! You can stay legally, for (up to) 240 days with the receipt of your application for H1 extension, before you receive your H1 approval.