Yes.
Time period of a spring mass system is given by,
...(1) .
where m is mass of the block, and
k is the spring constant
Time period is also given by the relation,
...(2)
where, x0 is extension of the spring, and
g is acceleration due to gravity
From the equations (1) and (2), we have:
Substituting the value of k in the above equation, we get:
Thus, we can find the time period if the value of extension x0 is known.