Have to realize that sacrifice is giving up something valued for something else that is higher valued. Therefore it’s linked to your priorities, and it doesn’t really have to be a dirty word. Sacrificing a day or few hours of coding to see an aging relative or have some fun, just means you value those things higher than coding. I don’t think that’s a bad thing.
Most often around here, I think, people practice coding in order to reach some professional/financial or personal goals. For you, you have put a time limit on accomplishing that. As well, you bring up this idea of success. Can you be successful? Well, what does success mean to you? In the context of this thread, which is perused by largely strangers on the internet, it’s most obviously “becoming a full-stack web developer in 7 months”. But in terms of your life, I think “success” can be much broader a concept.
E.g. I’m happy I’m a developer, I feel I succeeded in that initial goal, I still have other goals that I hope to succeed on with regards to my professional life. But I evaluate my goals every month (at least) in the context of personal, professional, and financial goals.
From the sound of it, you also have professional goals (e.g. become a developer being one of them), as well as personal goals, then you can sacrifice one goal for another (Oktoberfest instead of coding), and still succeed.
Heck, my school always had posters saying “success is getting up one more time than you fell down,” so you could say success is even just trying to reach a goal. So if you’re trying to become a developer in 7 months, trying to spend time with family, and trying to have fun and enjoy life, then sounds like you’re succeeding.