Can you use a vibrator while pregnant?

Does it matter how far along you are?