No. You should not use functions provided in a given library or package that will significantly simplify the
algorithms that you are asked to implement in coursework, if that is the case, you will be charged by a penalty in score, because you don't pay enough effort in coding.
This question is asked by a student in person to me, and I pose it here for everyone else to read it. And for other questions I urge you to ask them with more issues.