Maybe. Some immigrants must show when they apply for green card status that they are not going to rely on government assistance for financial support. This is called the public charge test.
The public charge test only applies to certain immigrants, such as:
It does not apply to refugees, asylees, or other humanitarian entrants.
If you are not lawfully present, you probably are not eligible for any benefits that would affect your ability to get a green card in the future.
Read Public Charge: What You Need to Know to learn more.