Answer:
For the pendulum , yes and for the spring ,No
Explanation:
We will examine the two cases,
For pendulum;
[tex]T =2\pi \sqrt{\frac{l}{g} }[/tex]
we see that for a pendulum, the period depends on the gravitational acceleration of the region it is. so the period for earth will differ compared to that of the moon.
For a spring;
[tex]T=2\pi \sqrt{\frac{m}{k} }[/tex]
form the equation above is obvious that the period of a spring in vibration is independent of gravitational acceleration of the region it is.