I am creating a program with C++ language that working with strong cryptography. Does it matter if I use public or private functions where contains a secret algorithms, any sensitive structures of code or even secret data. Functions will be work with classes. Imagine if I am working on project solo, with no team.
When I use public functions, after I compile project to exe file, will it be completely safe?

(previously I coded in python).