It's not optimal, but it'll work fine. I wouldn't worry about it. Tubes for wide tires in a narrow tire are more problematic, in my experience.
Bicycling
A community for those who enjoy bicycling for any reason— utility, recreation, sport, or whatever!
Post your questions, experiences, knowledge, pictures, news, links, and (civil) rants.
Rules (to be added on an as-needed basis)
- Comments and posts should be respectful and productive.
- No ads or commercial spam, including linking to your own monetized content.
- Linked content should be as unburdened by ads and trackers as possible.
Welcome!

Because the rubber is being stretched, a puncture can tear open like a balloon being pinpricked. A puncture in a fitting inner tube leaks slower.
You can slow down air leakage further by sticky-taping the wheel's spoke holes airtight. It helps by letting you ride to a more comfortable place for patching after noticing you have a leak.
I don't think that the width is an issue, because when you pump it up, it will expand
It expands, but also thins out. I really don't think it's going a be a big problem in this exact case, since it's only slightly undersized, but there is a limit.
As an example, many years ago I was in a small group ride with 32mm tires and had flat. My spare was also flat, and the closest tube another rider had was for 25mm max. It worked fine for about a mile and then loudly popped.
Or explode! If it hasn't then it's probably fine.