Hello @Roya
welcome to the Wefugees community!
Here is a quote from the website of Swedish Migration Agency:
"The fingerprints are used to check whether you have applied for asylum in any other Schengen country and if you have a residence permit or prohibition in any Schengen country. If the fingerprint check shows that you have been registered in another country on your way to Sweden, or that you have already applied for asylum in another country, the Migration Agency will determine which country should examine your application for asylum."
Source: https://***.migrationsverket.se/English/Private-individuals/Protection-and-asylum-in-Sweden/Applying-for-asylum/How-to-apply-for-asylum.html
You can find further information following this link:
https://***.migrationsverket.se/English/Private-individuals/Protection-and-asylum-in-Sweden/Applying-for-asylum/You-cannot-choose-the-country-where-your-application-for-asylum-is-examined-the-Dublin-Regulation.html
So if you apply for asylum in Sweden it might happen that they will refer you back to Hungary even though you did not apply for asylum there.
Let's see if @Marcel and @Steven can add something.
I hope this answer was helpful to you. Feel free to ask further questions if anything remained unclear.
Best regards,
Thorgen