Can a friend help? Yes, if it’s a cat or a dog. Just kidding, yes, it is possible a friend who is a human can cheer you up and push you forward, but in the end it is you who needs to be motivated. People will try, but you need to make it work for you and nobody else can. Relying on others is never wrong, but don’t forget to rely on yourself too. You know you better, you are your own strength. There is never a fixed way to motivate, it happens. If you think quitting is reasonable, then no, it is not a bad idea to quit. Get back later, it’s okay.