As long as you wire in to the correct circuit then yes, as for it being just like the dome light, I dont know what that means.
I think you should do some research on simple circuits as there are many ways you could make this work but it depends when you want it operational