How to use ./configure --prefix=FOO in building a snap

I have several apps that use the gnu configure script to build them. It requires me to use a fixed path like /opt/ etc. What should i use to have the path inside the snap? What i have been doing is: ./configure --prefix=/snap/mysnapname

Is that correct?