Guide Layer & Mask

Does anyone know if you can take a shape and give it a motion path (using a guide layer) and also make that layer a mask so you can see through the moving shape?