Yes it is possible, but you need to plan and set your dynamic lighting up that way to make it possible. You cannot do it after you have already set up your DL objects, without a script. Best practice is to make your DL objects in smaller, separate chunks, and always make doors separate pieces. Then during play, you can switch quickly to the DL layer, and either remove or move the line that indicates the door.