Is a warm rice sock safe for a one week old?

Ann • Very happily married💍Beautiful baby girl💗

My one week old hates being laid down in her bassinet at night, even after she’s been fed and changed. She’ll fall asleep on me and as soon as I lay her down she wakes up crying. It takes about 2 to 2.5 hours for her to fall asleep, and then she’s up in an hour. I saw the rice sock technique but am wondering if it’s ok for her age?