Use of expansion board with micro:bit

Is an expansion board used just for programming the micro:bit or does it need to stay attached to the microbit when in use?