That .dmg file is a Disk Image file. Double-clicking it will mount a "disk" on your desktop, probably called something like "Firefox."
Open that disk image, and inside will be the application you need. If it's an installer, run it. If it's the actual application, drag it to your Applications folder and run it.
And welcome to Mac!