Translation:Had you closed the door?
Would locked be good for lukket as well?
No, "locked" is "låst". The verb is "at låse".
Did you close the door?
no, that's quite different. you used simple past there, which is different from past perfect