Hi there
It certainly should work, but there are number of issues that have been discussed here at length, including:
If the destination partition is even one byte too short, the dd will run off the end (and you'll get a block miscount and a dangerously defective copy).
Have a search on this forum.
There have also been methods discussed on how to open the partitions within the decompressed .img file while still on the hard drive.
Do use your Linux machine to make partition 2 bigger than the image if there is space on the card.
Good luck,
Ralph