Vibrator

Can I use a vibrator while pregnant ? Sex is painful with my partner ever since I got pregnant ... is it safe to use a vibrator ?