If you didn't actually test the coin after the first set of tosses, or make the choice to toss the second set based on the first, then yes, you should be able to simply combine them into one large sample.
If your behavior was in any way contingent on what happened in the first set, then it affects the properties of the combined set when treated as one large sample, compared to what the properties would have been if it had actually been a large sample).
If you did test the coin after the first set, then the two tests will be dependent. (If you tested it but whatever the outcome it would have had no impact on anything in any way, you could continue to simply ignore it as if it had never happened. However, it may be better to report it as two tests, one of n=20 and a second of n=30 - there are various ways to combine independent tests after the fact ... but again, this would require that the second set not be contingent on the first.)
In response to an insightful question in comments:
It's not the proportion of heads that's at issue in my discussion (I can't bias the coin in this way). It's the test of it that's affected. If I assign significance to a particular set of outcomes, but I change the actions based on those outcomes, then I may change the proportion of times I'll make the various conclusions based on my experiment. whuber's comment on "best two out of three?" hints at this; it's not P(H) that is changed by saying "best two out of three" if tails comes up first, but the conclusion based on the experiment ("who wins the toss", in that case).
In the question's 20 tosses, say my original rule is "conclude the coin is biased toward heads if I see 15 or more heads, and conclude it's biased toward tails if I see 15 or more tails". About 2% of the time I'll call a fair coin biased toward heads and about 2% of the time I'll say it's biased toward tails.
Now consider the rule "conclude the coin is biased toward heads if I see 15 or more heads, otherwise, toss 30 more times and apply the rejection rule I would have applied as if I'd tossed 50 times to begin with", then I'm not longer as likely to say it's biased at all, nor as likely to say a fair coin is biased toward heads than to conclude it's biased toward tails