Yes you can drink coffee while breastfeeding. While small amounts of caffeine do pass through milk, up to 300mg is considered compatible with breastfeeding.