Is civilization iv beyond the sword and civilization iv warlords both expansion packs for civilization iv?

yes