is it safe to use the jointer to flatten one side of these logs?
Safe for the operator I would say so, but for the jointer less so.
In addition to worries about the moisture level in the wood and its potential for kickstarting rust formation on and especially inside the jointer, the first reservation I would have is all that bark.
Bark isn't normally tougher than wood, generally power tools go through it almost like it's not even there, but it can (and IME frequently does) have microscopic grit in it1, which is a potential knicking hazard for your jointer knives.
While minor knicks in conventional jointer knives aren't the end of the world, obviously you want to minimise the chance of knicking them if you can.
So for this reason alone I think it would be worth removing some or all of the bark before you ran them over the jointer.
The following video on Nick Engler's channel, Workshop Companion, shows this as part of the prep steps for bandsaw milling (although not because of grit) and shows a very simple and commonsense way of approaching this task so I rate it highly.... with a minor reservation for his pronunciation of winding sticks — it's wind as in clock, not wind as in breezy :-)
Band Saw Lumber-- Sawing Firewood into Usable Boards.
For safety, this requires either a sled, or a flat base on the log to avoid it rolling on the bandsaw.
Since you will be making a flat that allows the logs to pass over the bandsaw's bed a jig of some sort is no longer a necessity, but you might wish to create one anyway.
If you want a sled that's just a smidge more elaborate than the jig Nick Engler shows see this previous Answer for two (of the many) sleds people have come up with over the years.
Note on blade choice for the bandsaw
Remember once you get going this becomes a resawing operation, which is already challenging for a bandsaw if it's not fitted with a suitable blade for deep ripping. If you don't have a low-TPI (5 max?) or skip-tooth blade fitted you must take it slowly to allow for waste clearance.
Also remember the wood is likely quite damp in the interior so waste clearance will be even more of a problem than it is normally. You may find you need to open up the saw periodically and clean sticky sawdust from the interior.
I can also fall back to the the hand held planer, but that's pretty slow going
Not sure if it's relevant at this point in the Answer, but just to have it said walnut is an easy-working hardwood, and even if fully air-dried at this point2 would be even nicer compared to the more typical kiln-dried stuff most of us are now used to.
So just hand-planing (using the appropriate type of plane) is definitely a viable option. With a hand planer it'll be faster3 and certainly a lot less sweat equity will be involved.
However, even accounting for both of the above and the removal of some of the bark further reducing the amount of wood that needs to be taken off the first tool I would reach for would be a saw.
A decent bucksaw would arguably be the ideal choice here, but in terms of workshop saws a large rip saw or a modern hardened-tooth utility saw could also make quick work of sawing off the bulk of the waste4. After that all that's needed is to smooth and flatten this surface just enough to allow you to proceed.
and doesn't leave a hugely flat surface due to it's small size.
Worth pointing out I think that this is a technique thing. While it's certainly easier to create a flat surface with something longer (that's why longer planes exist after all) if you had to you could create a dead-flat surface with a block plane, using the appropriate technique.
1 Note that this is even if the logs have never been on the ground; if they have at any point lain on the ground some embedded grit should be taken as a certainty, not a possibility.
2 Very unlikely given it's only been a couple of years and using the 'one year per inch of thickness' rule of thumb.
3 Possibly not quite as much as one might think, given the ideal hand planes for this work will have irons that have pronounced cambers so are capable of really hogging off material.
4 Although either type will benefit from regular lubrication with wax or oil.