"Lay" means "cause to lie" and needs a direct object, while "lie" means "to be situated, especially on a horizontal position". Compare:
Please, lay this cover on the bed.
Please take off the cover that lies on the bed.
The "rule-of-thumb" would be and . So, the sentence you wrote is correct.
Hope this helps!