Yes and no. First of all, if you want to compose it the original way, you will have to go to the dominant key; if you want to compose it more freely, let's say romantic, you can choose to go to the subdominant key. Rules in music are not made by a ruler and if you don't stick to them, you don't get sued. All the rules are description of what music theorists discovered when they analysed music. They are a description of what they found, of what's going on. The rules for voice leading developed because following the rules make your music sound great (of course other factors matter as well, but good voice leading is important), but you may break them if it makes sense and still sound good, or if you want to achieve a specific effect.
@@DJKLProductions Actually, it is called (do not know exactly why) the „old way”. It is not romantic at all, it is one of the very first types of fugues and answer, by simply replacing the ascendant fifth with the descendant fourth. :)