If you can drill a 1/2 inch (?) hole in the side of the light fixture safely and not in the way of something, then you can do this. Put the switch in place of the wire connection of the black wires only. Then if you have a switch on the wall for this, you can take the switch out, cap off the wires and blank plate the hole and then the light is controlled only by the pull chain