When you want to take your camera out at night (or dusk, which is the best time for nighttime photos, I find), get yourself a tripod first.
You can, of course, rest your camera on anything solid, but that will limitate you in your composing the photo. Like if you rest it on a wall, railing or something like that, you'll always get that in your frame, you'll only get that one point of view - and often it is awkward to compose, mostly so if you have to look through the viewfinder or don't have a movable screen.
That tripod given ... some sound advice has also been given: don't crank up the ISO settings only because it is dark. Leave them as low as possible. Also don't necessarily put your aperture (which is the opening in your lens through which the light can fall onto your sensor, and which can be wide open ... think of the pupils of your eyes in very low light! ... or narrower) to wide open only to let as much light reach the sensor as is possible. While a wide open lens will give you shorter exposure times, it will also give you a shorter DOF (depth of field), i.e. less things within your frame will be in focus and you must focus with much, much greater care. AND it will make light sources look like big, bright blobs.
So it is advisable to stop down (make the aperture smaller).
Watch out: a large aperture (big hole) has a SMALL number. Apertures are given in f-numbers, and a large one has like f2.8 or so (see, little number), whereas a small aperture has a higher number. I am not familiar with your camera. My compact camera can only go from f2.8 to f8 and not smaller. Maybe the same applies to your camera?
My other camera can go from ... depending on the lens I use ... f2.8 or so up to f22 or even 32. F32 sounds big but is, in fact, only a tiny hole.
If you only have a tiny, tiny hole in your lens, only very little light can reach the sensor. So in order to expose right, you must give that little amount of light a long enough time to "shine onto" your sensor.
Therefore with narrow apertures you need to expose for a longer time. The smaller the aperture, the longer your exposure time. So soon enough you will no longer be able to keep your camera still enough for all the long period of time. You will get camera shake, unless you firmly rest the camera.
Hence the tripod.
Now it can still happen that the mere pushing the button will already give you some camera shake. That is why I found the hint (which also I only was given here on TPF some years ago) very useful that you best set your camera on timer, so in the moment it starts to release you don't even touch it.
If you want to photograph a person against a lovely sunset sky after sunset and you want both things to show, sky AND person, then you must use the flash to fill in the person's face with the necessary light. Else your person will show as a black silhouette. That CAN be the desired effect, but need not always be. I am sure, if you study your camera closely enough, you might also find out where to determine the strength of the light given by the on-camera flash? For sometimes you don't need it as bright as the camera would automatically give it, then you can set the camera-flash to -2.
You might be one of the "don't-like-manuals-much"-user of things (shake hands on that then!

) - but some things are worth being read up in the camera manual, mostly so if you want to step away from "all auto" more towards manual operation of your camera (and for night photos you need to do that, i.e. operate it manually).