@ankara-- Yes, there is definitely a connection.
Are you taking thyroid hormone medications for your hypothyroidism? These medications can cause palpitations as a side effect. It usually occurs in the beginning of treatment and should go away as your body adjusts. If it doesn't go away, it might be a sign that the dose is too much.
Palpitations when lying down also occurs in hyperthyroidism. I have hyperthyroidism and I get heart palpitations when I exercise and when I lie down.