Replace ceiling fixture
#1

Need to replace old cracked ceiling fixture.
Brought new fixture.Has black and a white wire.Can I disconnect the old wiring from the old fixture and connect the new wires from the new fixture with the light switch that operates the light in the off position?
Brought new fixture.Has black and a white wire.Can I disconnect the old wiring from the old fixture and connect the new wires from the new fixture with the light switch that operates the light in the off position?