Can I file an immigrant petition and an adjustment of status at the same time?

If a visa number is available at the time of filing, the immigrant petition and adjustment of status can be filed at the same time.