Not automatically or easily, no. If you want to keep the molecule rigid and in a particular orientation, maybe it is more efficient to scan various positions and record the total energy or forces, and run a manual minimization algorithm on that (like scipy.minimize). However, this requires that you program the geometry setup using a simple parameter like the surface-molecule distance, which is then the (only) parameter.you optimize.