After birth breastfeeding

Would I be able to breastfeed my baby as soon as I give birth? A friend told me within an hour of birth I should try to get my baby to latch. I’m a new mom and I know nothing about breastfeeding. Does it hurt? Is it bearable? Will my milk ducts get clogged? Will my nipples burn? Will they tear? How do I prevent that? Help