Does anyone else rock themselves to sleep?

Since i was a small child, i picked up the habbit of rocking myself to sleep from my mom. Could the rocking be bad for baby?