Can you use a heating pad on ur back

Desiray
Is it safe to use a heating pad on ur back when ur pregnant? How long can i use it?