Unfortunately, no. But if you have the Word desktop program, you can click open your document in Word and insert the file name in a footer there.
Click Open in Word to open your document in the desktop version of Word.
After opening your document in Word, insert the file name in the footer. Then, press Ctrl+S to save your document to its original location.
Tip: Office Online is updated all the time with new features. Visit the Office Online blog for the latest news and announcements.