Normally, most episodes are filmed first, before they are aired. However, filming might still go on even after the series premiering on TV. They film makers might decide to show the 1st episode while they are filming the 14th episode.
I think I understand what you are asking. Episodes are filmed from the beginning and sometimes they are aired while they are still being filmed. They may show the 1st episode while they are filming the 10th episode.