When sandbox appears, does this mean a program contains a virus?

I opened a certain program in my computer, and sandbox keeps appearing. I was afraid to open it because Avast stated to open it in the sandbox because it can potentially harm my computer.
Does this mean that while I'm trying to open those programmes, sandbox will appear,because of having viruses? I'm just double checking so that I could delete these programs immediately.

