Maybe, but, more likely, you weren't given good help and the baby is simply not getting your milk well. Get good help. Formula samples are not help. Under some circumstances, it may be impossible to start breastfeeding early. Get good help.
Premature babies can start breastfeeding much, much earlier than they do in many health facilities.
In fact, studies are now quite definite that it is easier for a premature baby to breastfeed than to bottle feed. Unfortunately, too many health professionals dealing with premature babies do not seem to be aware of this.