Sadly, no. Tl;dr: the minimum size of such a creature is on the scale of kilometers and thus pretty infeasible. Instead, try making the creature some kind of colonial organism and boosting your planet.
First, let's consider the simple hypothetical: how much hydrogen would it take to simply lift a whale? Well, a blue whale weighs 200 tons- that's 200,000 kg. Each cubic meter of hydrogen can lift approximately 1.1 kg, so to lift a whale we're talking about 181,000 cubic meters of air. This is about the same size as the Hindenburg or your classic zeppelin- which you probably think is a lot smaller than it actually is:
It also brings to mind some really fun mental images of a whale soaring through the sky while strapped to the bottom of a zeppelin. Unfortunately, that comparison is unhelpful because the skin of the zeppelin is assumed to have a negligible weight- something that we can't do with biology.
So, let's assume a spherical whale.
What we're trying to figure out here is the minimum size of a biological gasbag. We model that as a sphere of $H_2$ gas surrounded by a thin shell of skin.
Beware, physics below
Our initial equation starts out pretty simply:
$V_{hyd}*F_{buoy} = M_{skin\ shell} = V_{shell}*\rho_{shell}$
where $\rho$ is the density of our shell.
This is then expanded to give us some actual formulas. We're trying to solve for the radius of this biological gasbag, so we're hoping to end up with $r$ alone on one side set equal to a bunch of numbers.
$\frac{4}{3}\pi r^3*F_{buoy} = 4\pi r^2t*\rho_{shell}$
Where $t$ is the thickness of the shell- I'm going to assume it's 1 meter thick. Sounds approximately right to me. We can simplify a bit with that information and some quick algebra:
$r^3 * F_{buoy} = 3r^2*\rho_{shell}$
Which immediately simplifies to exactly what we were hoping for!
$r * F_{buoy} = 3*\rho_{shell}$
Let's deal with those other two variables. The $F_{buoy}$ is the force of buoyancy due to our lifting gas, in this case, hydrogen. There's a lot to it, but Wikipedia has a shortcut: $1\ m^3$ of hydrogen can lift $\approx 1.1kg$. Cool! We can also deal with the other variable, $\rho_{shell}$. Here, a quick google search tells us that the density of skin is about $800\frac{kg}{m^3}$. Let's plug those numbers in.
$r*1.1 = 800*3 = 2400$
Note: I fudge my units for simplicity's sake here. The $F_{buoy}$ term is a good bit more complex.
So our minimal radius for our idealized gasbag is $\approx 2200m$, or 2 kilometers.
Biological assessment:
Totally infeasible. A whale 4 kilometers long is nowhere near plausible, and that's the absolute minimum. You'd have to add things besides skin, and that all adds weight, and every time you add something you increase the radius that much further. With some back of the envelope calculations, I get a minimum size of 8 kilometers; including water and muscle mass as well as a tubular body. What really sunk this, however, was the circulation system. Even though the volume scales as the cube of the radius, the amount of liquid needed to provide circulation throughout the body scales even faster. Sad.
Fictional solutions
There are two main ways I see to combat the problems above.
Modify the organism
If the mammalian whale-like characteristics aren't a hard necessity, I humbly submit the siphonophore for your consideration. It's a marine creature that's actually colonial- made up of individual cells working in unison. There are two big perks to this. One, they're clearly capable of it- the Portugese man o' war is a siphonophore, and it already has a large float that could be modified to hold hydrogen (in a fictional universe). Plus, many siphonophores are bioluminescent, which would be awesome to see as a large creature floating overhead. I estimate the minimum size of these to be 5 kilometers in diameter (water weighs more than skin, but they're fine being spherical), so they'd be like glowing clouds. If that isn't epic sci-fi, I don't know what is.
Modify the environment
I fudged the buoyancy term in my derivation above, but it's based on essentially two things- the force of gravity and the density of the atmosphere. Here in Worldbuilding, we're free to modify both of those! What we want is a small planet (low gravity) with a dense atmosphere. If we have an atmosphere like Venus, which is some 60 times denser than Earth's, and a planet about the size of Titan, which has a gravity about 1/8th of ours, we can get a much larger buoyancy force. On this planet, every cubic meter of hydrogen is going to be able to lift around 250 kg- a massive increase from the 1.1 we used on Earth. This cuts our minimum radius down to just 10 meters! That's much more reasonable for an organism, especially one that's supposed to be a whale, and quite manageable in any fiction novel.