Just wondering, I used a .ogg sound file to make something and it didn't work at all
Yes, AppInventor can play ogg sound files.
https://developer.android.com/media/platform/supported-formats
Check the length of the ogg file (in seconds) if longer than 4/5 seconds then use the Player component instead of the Sound component.